﻿#ifndef __WRITE_DATA_H_
#define __WRITE_DATA_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <assert.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/shm.h>
#include <signal.h>
#include <pthread.h>
#include <sys/socket.h>
#include <mysql/mysql.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "cJSON.h"
#include <sys/epoll.h>

#define MAX_EVENTS 10
#define MAX_SIZE 1024
#define PORT 6501
#define IP "192.168.48.128"//当前是本地通信，云服务器时填写私网ip




typedef struct water_pump {
    int type;
    int pump_type;
    int id;
    char pump_name[20];
    struct water_pump *Next;
}WP;

typedef struct concrete_data {
    int type;
    int data_type;
    float temperature;
    float liquid_level;
    float flow_rate;
    int valve_state;
    float negative_pressure;
    float pressure;
    char time[20];
    int pump_id;
    struct concrete_data *Next;
}DAT;







#endif
